package com.kangfu.common.constant;

public class HuaweiConstant {

    public static final String CLIENT_ID = "107384191";  //注册应用时获得的App ID。

    public static final String RESPONSE_TYPE = "code";

    public static final String CLIENT_SECRET = "7d7a36a40e01c8bab520c0a1f97ba5d27a56dc2efc4ca3cc61d3fa6c523765b1";

    public static final String AUTHORIZE_URL = "https://oauth-login.cloud.huawei.com/oauth2/v3/authorize";  //去到授权页面的URL

    public static final String TOKEN_URL = "https://oauth-login.cloud.huawei.com/oauth2/v3/token";   //获取accessToken的URL

    public static final String CREATE_DATACOLLECTORS_URL = "https://health-api.cloud.huawei.com/healthkit/v1/dataCollectors";  //创建数据采集器的URL

    public static final String QUERY_SAMPLESET_URL = "https://health-api.cloud.huawei.com/healthkit/v1/sampleSet:polymerize";  //采样数据明细查询URL

    public static final String UN_AUTHORIZE_URL = "https://health-api.cloud.huawei.com/healthkit/v1/consents/" + CLIENT_ID + "?deleteData=false";  //取消授权URL

    public static final String TOKEN_INFO_URL = "https://oauth-api.cloud.huawei.com/rest.php?nsp_fmt=JSON&nsp_svc=huawei.oauth2.user.getTokenInfo";  //获取TOKEN信息URL

    public static final String PRIVACY_RRCORD_URL = "https://health-api.cloud.huawei.com/healthkit/v1/profile/privacyRecords";  //隐私授权状态查询接口

    public static final String DAILY_POLYMERIZE_URL = "https://health-api.cloud.huawei.com/healthkit/v1/sampleSet:dailyPolymerize";  //多日采样数据查询URL

    public static final String HEARTRATE_READ = "https://www.huawei.com/healthkit/heartrate.read";   //心率读取权限URL

    public static final String STEP_READ = "https://www.huawei.com/healthkit/step.read";  //步数读取权限URL

    public static final String OXYGENSATURATIME_READ = "https://www.huawei.com/healthkit/oxygensaturation.read";  //血氧读取权限URL

    public static final String HISTORY_READ = "https://www.huawei.com/healthkit/historydata.open";   //历史数据读取权限URL

    public static final String DISTANCE_READ = "https://www.huawei.com/healthkit/distance.read";   //距离读取权限URL

    public static final String CALORIES_READ = "https://www.huawei.com/healthkit/calories.read";   //卡路里读取权限URL
}
